﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AnimaGestionPersonnage.Utilities
{
    public class AdvDisadv : IEquatable<AdvDisadv>, IEquatable<String>
    {
        public string name {get; set;}
        public int cost { get; set; }
        public AdvDisadvType type { get; set; }
        public List<SkillMod> modToSkill { get; set; }
        public List<StatBonus> statBonuses { get; set; }
        public List<string> notes { get; set; }

        public AdvDisadv()
        {
            modToSkill = new List<SkillMod>();
            statBonuses = new List<StatBonus>();
            notes = new List<string>();
        }

        public AdvDisadv(string n) : this()
        {
            name = n;
        }

        public override string ToString()
        {
            return this.name;
        }

        public Boolean Equals(AdvDisadv otherOne)
        {
            return name.Equals(otherOne.name);
        }

        public Boolean Equals(String otherOne)
        {
            return name.Equals(otherOne);
        }
    }
}
